//
//  WPhotoModel.m
//  PhotosBrowser
//
//  Created by winter on 2016/10/24.
//  Copyright © 2016年 JHJR. All rights reserved.
//

#import "WPhotoModel.h"
#import "WPhotoBrowserConst.h"

@implementation WPhotoModel

+ (instancetype)photoWithThumbnailUrl:(NSString *)thumbnailUrl
{
    WPhotoModel *photo = [[WPhotoModel alloc] init];
    photo.thumbnailImageUrl = thumbnailUrl;
    return photo;
}

+ (instancetype)photoWithOriginalUrl:(NSString *)originalUrl
{
    WPhotoModel *photo = [[WPhotoModel alloc] init];
    photo.originalImageUrl = originalUrl;
    return photo;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.progress = 0.0;
        self.verticalWidth = WScreenW;
    }
    return self;
}

@end
